package com.nf.service;

import com.nf.entity.Student;
import com.nf.mapper.StudentMappper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudnetsServiclmpl implements StudentsService {
    @Autowired
    private StudentMappper studentMappper;

    public List<Student> findStudents() {
        System.out.println("Dao实现类："+studentMappper);
        for(Student s:studentMappper.findStudents()){
            System.out.println(s.getName());
        }
        return null;
    }
}
